﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace MYQQX
{
    public partial class ScoreForm : Form
    {
        public ScoreForm(string title, ScoreGroup group)
        {
            InitializeComponent();

            lblGroup.Text = $"{title} 完成组合：[{group.Name}]: " + string.Join(",", group.groups);
            lblScore.Text = $"得分：[{group.Score}]！";
        }

        private void btnOK_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.OK;
        }

        public static void Show(string title, ScoreGroup group)
        {
            ScoreForm frm = new ScoreForm(title, group);
            frm.ShowDialog();
        }
    }
}
